// 提供商品相关的API函数

import request from '@/utils/request'

// 获取商品详情
export const findProductGoods = id => request({
  url: '/goods',
  params: {
    id
  }
})

// 获取商品列表
export const findProductList = params => request({
  url: '/goods/relevant',
  params
})

export const findGoodsHot = params => request({
  url: '/goods/hot',
  params

}
)

// 查找商品评论信息
export const findGoodsCommentInfo = id => request({
  url: `https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate`
})

export const findGoodsCommentList = (id, params) => request({
  url: `https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate/page`,
  params
})
